<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title></title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <%@ include file="/WEB-INF/jsp/common/js.jsp"%>

    <script>
        $(document).ready(function(){
            JInitSelect('canUse','${po.canUse}');

            //如果是编辑
            if($('#id').val() != ''){
                //$("#name").attr("readonly","readonly");
            }
        });
    </script>
</head>
<body>
<div class="container">
    <h1>账户</h1>

    <div id="divDefualtForm">
        <form method="post" action="${pageContext.request.contextPath}/devops/account/update">
            <div class="form-group" style="display: none">
                <label for="id">id</label>
                <input name="id" id="id" type="text" class="form-control" placeholder=""  value="${po.id}">
            </div>
            <div class="form-group">
                <label>用户名</label>
                <input name="name" id="name" type="text" class="form-control shortInput" placeholder="yangpengfei" value="${po.name}">
            </div>
            <div class="form-group">
                <label>邮箱</label>
                <input name="email" id="email" type="text" class="form-control shortInput" placeholder="yangpengfei@yolo24.com" value="${po.email}">
            </div>
            <div class="form-group">
                <label>QQ</label>
                <input name="qq" id="qq" type="text" class="form-control shortInput" placeholder="262549369"  value="${po.qq}">
            </div>
            <div class="form-group">
                <label>手机号</label>
                <input name="mobile" id="mobile" type="text" class="form-control shortInput" placeholder="13439083551"  value="${po.mobile}">
            </div>
            <div class="form-group">
                <label>姓名</label>
                <input name="realName" id="realName" type="text" class="form-control shortInput" placeholder="杨鹏飞"  value="${po.realName}">
            </div>
            <div class="form-group">
                <label>是否启用</label>
                <select name="canUse" id="canUse" class="form-control" style="width: 100px"  >
                    <option value="2" selected>是</option>
                    <option value="1">否</option>
                </select>
            </div>
            <div class="form-group">
                <label></label>
                <button type="submit" class="btn btn-default">保存</button>
                <button type="reset" class="btn btn-default">重置</button>
                <button id="btnGoBack" type="button" class="btn btn-default">返回</button>
            </div>
        </form>
    </div>
</div>
</body>
</html>
